package com.iecas.handler;

import com.iecas.enums.BizEnum;
import com.iecas.enums.ResponseEnum;
import com.iecas.launch.Client;
import com.iecas.launch.Server;
import com.iecas.request.Root;
import com.iecas.response.BaseResponse;
import com.iecas.response.HeartBeatResp;

import java.nio.channels.SocketChannel;

public class HeartBeatReqHandler extends BaseHandler {

    @Override
    BaseResponse handle(Root baseRequest, Server server, Client client, SocketChannel socketChannel) {
        HeartBeatResp heartBeatResp = new HeartBeatResp();
        heartBeatResp.setStatus(ResponseEnum.SUCCESS.getCode());
        heartBeatResp.setCode(BizEnum.HEART_BEAT_RESP.getCode());
        return heartBeatResp;

    }
}
